<style>
    .layui-form-select dl {
            z-index: 9999;
        }
</style>
<div class="layui-fluid">

    <form class="layui-form" id="layuiadmin-form-info" lay-filter="layuiadmin-form-info" style="padding: 20px 0 0 0;">
    <h1>基础</h1>
    <hr/>   
 <div class="layui-form-item">
            <label class="layui-form-label">
                分类
            </label>
            <div class="layui-input-inline">
                <select lay-verify="required" name="cat_id" multiple="multiple">                    
                    {$cat_options|raw}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                缩略图
            </label>
            <div class="layui-input-block">
                <div class="layui-col-md2">
                <input autocomplete="off" class="layui-input ajax_file_input"  name="thumb" placeholder="请输入缩略图" type="text"  value="{$data.thumb}" /></div>
                <div class='layui-col-md3' style='padding-left:10px;'>
                <button class="layui-btn layui-btn-primary ajax_file" type="button"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                </div>
            </div>
        </div>


  <h1>多语言</h1>
    <hr/>

        <div class="layui-tab">
 <ul class="layui-tab-title">
 
 {foreach $langs as $k=>$v}
 <li class="{if $k==1}layui-this{/if}"><img src="/static/images/lang/{$v}.png" />&nbsp;{$v}</li>
 {/foreach}



 </ul>

 
 <div class="layui-tab-content">

 {foreach $langs as $k=>$v}

 <div class="layui-tab-item {if $k==1}layui-show{/if}">
     
      <!--语种s-->
        <div class="layui-form-item">
            <label class="layui-form-label">
                标题
            </label>
            <div class="layui-input-inline">
                <input autocomplete="off" class="layui-input" lay-verify="required" name="description[{$k}][title]" placeholder="请输入标题" type="text" value="{$description[$k]['title']}"  >
                </input>
            </div>
        </div>
       
       
        
        <div class="layui-form-item">
            <label class="layui-form-label">
                摘要
            </label>
            <div class="layui-input-inline">
                <input autocomplete="off" class="layui-input"  name="description[{$k}][brief]" placeholder="请输入摘要" type="text" value="{$description[$k]['brief']}">
                </input>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                seo标题
            </label>
            <div class="layui-input-inline">
                <input autocomplete="off" class="layui-input" name="description[{$k}][seo][meta_title]" placeholder="meta标题" type="text" value="">
                            </input>                            
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                seo关键词
            </label>
            <div class="layui-input-inline">
               <input autocomplete="off" class="layui-input" name="description[{$k}][seo][meta_keyword]" placeholder="meta关键词" type="text" value="">
                            </input>                          
            </div>
        </div> 

        <div class="layui-form-item">
            <label class="layui-form-label">
                seo描述
            </label>
            <div class="layui-input-inline">
                

                            
                            
                             <textarea name="description[{$k}][seo][meta_description]"   class="layui-textarea"   rows="3"   placeholder="meta描述"></textarea>
                                                
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                内容
            </label>
            <div class="layui-input-block">
                <textarea class="ueditors" id="content_{$k}" name="description[{$k}][content]">
                    {$description[$k]['content']|raw}
                </textarea>
            </div>
        </div>
       
         <!--语种e-->


 </div>

{/foreach}
 </div>
 </div>




       

          <div class="layui-form-item layui-hide">
            <input id="LAY-info-front-submit" lay-filter="LAY-info-front-submit" lay-submit="" type="button" value="确认">
            </input>
        </div>
    </form>
</div>
<script src="/static/ueditor/ueditor.config.js" type="text/javascript">
</script>
<script src="/static/ueditor/ueditor.all.min.js" type="text/javascript">
</script>
<script src="/static/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript">
</script>
 
 

<script>
    layui.use(['index', 'common','multiSelect','element'], function(){


         var element = layui.element;



    })
</script>